<template>
  <div>
    <div class="title">
      <div class="left">预警事件列表</div>
      <div class="look-all"> <a-link @click="handelLookAll">查看全部</a-link></div>
    </div>
    <LookAllData/>
    <TableCom/>
  </div>
</template>

<script lang="ts" setup>
import TableCom from "./TableCom.vue";
import {getPressureTen} from "../../../api/eventList/event";
import {usePipeStore} from "../../../store/pipe";
import LookAllData from "./LookAllData.vue";
const pipStore = usePipeStore()
getPressureTen().then(res => {
  pipStore.pressureData = res.data.results
})

const handelLookAll = () => {
  pipStore.visible = true
  pipStore.scroll = true
}
</script>

<style lang="scss" scoped>
.title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  .left {
    width: 100px;
    color: #000;
    padding-left: 10px;
    font-size: 15px;
  }
  .look-all {
    width: 100px;
  }
}
</style>